package com.wench.leetcode.abstract_factory;

import org.junit.Test;

/**
 * @author wench
 * @date 2021/12/27 18:58
 */
public class AbstractFactoryClientTest {

    @Test
    public void test() {
        IFactory surgicalMaskFactory = new SurgicalMaskFactory();
        // 输出：这是医用口罩
        System.out.println(surgicalMaskFactory.create());
        IFactory n95MaskFactory = new N95MaskFactory();
        // 输出：这是 N95 口罩
        System.out.println(n95MaskFactory.create());
    }
}
